﻿<UserControl x:Class="Save_Editor.DateTimePicker"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Height="67" Width="144" Name="ctrlDateTimePicker">
    <Grid>
        <DatePicker Height="25" HorizontalAlignment="Left" Margin="6,6,0,0" Name="date" VerticalAlignment="Top" Width="132" IsTodayHighlighted="False" DisplayDateEnd="{Binding Max, ElementName=ctrlDateTimePicker}" DisplayDateStart="{Binding Min, ElementName=ctrlDateTimePicker}" />
        <TextBox Height="23" Margin="6,37,0,0" Name="txtHrs" VerticalAlignment="Top" Text="{Binding Path=Hour, ElementName=ctrlDateTimePicker, Mode=Default}" HorizontalAlignment="Left" Width="22" KeyDown="text_KeyDown" MaxLength="2" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="34,37,0,0" Name="txtMin" VerticalAlignment="Top" Width="22" Text="{Binding Minute, ElementName=ctrlDateTimePicker}" MaxLength="2" KeyDown="text_KeyDown" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="62,37,0,0" Name="txtSec" VerticalAlignment="Top" Width="22" Text="{Binding Second, ElementName=ctrlDateTimePicker}" MaxLength="2" KeyDown="text_KeyDown" />
        <Label Content=":" Height="28" HorizontalAlignment="Left" Margin="25,35,0,0" VerticalAlignment="Top" />
        <Label Content=":" Height="28" HorizontalAlignment="Left" Margin="53,35,0,0" VerticalAlignment="Top" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="90,37,0,0" Name="comboBox1" VerticalAlignment="Top" Width="48" SelectedIndex="{Binding AMPM, ElementName=ctrlDateTimePicker}">
            <ComboBoxItem Content="AM" />
            <ComboBoxItem Content="PM" />
        </ComboBox>
    </Grid>
</UserControl>
